package com.breakfast.fun.ui.home.gallery;

import com.breakfast.fun.base.BaseModel;
import com.breakfast.fun.base.BasePresenter;
import com.breakfast.fun.base.BaseView;
import com.breakfast.fun.data.entity.home.product.ProductComment;

import java.util.Map;

import retrofit2.http.FieldMap;
import rx.Observable;

/**
 * Created by yukai on 16/9/29.
 */

public interface ProductCommentContract {
    interface Model extends BaseModel {
        Observable<ProductComment> getProductCommentModel(@FieldMap Map<String, String> map);
    }

    interface View extends BaseView {
        void showComment(ProductComment productComment);

        void loadComment(ProductComment productComment);

        String getProductId();
    }

    abstract class Presenter extends BasePresenter<Model, View> {
        public abstract void getComment(String productId, int begin);

        public abstract void loadComment(String productId, int begin);
    }
}
